#ifndef ENTRYTOOLTIP_H_
#define ENTRYTOOLTIP_H_

#include <wx/wx.h>
#include "../../core/Buddy.h"
#include <wx/stattext.h>
#include <wx/timer.h>
#include "ImppPopupWindow.h"

namespace Impp
{


class EntryToolTip : public ImppPopupWindow, public wxTimer
{
private:
	wxPanel* mainPane;
	wxStaticText* name;
	wxStaticText* statusMsg;
	wxStaticText* extendedInfo;
	wxStaticBitmap* avatarBitmap;
	Buddy* curBuddy;
	wxPoint curPos;

public:
	EntryToolTip(wxWindow *parent);
	virtual ~EntryToolTip();

	void trigger(Buddy* buddy,const wxPoint & pos);
	void hide();
	void showBuddyInfo(Buddy* buddy,const wxPoint & pos);
	Buddy* getCurBuddy();
	void refreshInfo();

private:
	void Notify();

};

}

#endif /*ENTRYTOOLTIP_H_*/
